package com.zwc.box2D;

public class Box2D {
	public static final int stCircle = 0;
	public static final int stEdge = 1;
	public static final int stLoop = 2;
	public static final int stPolygon = 3;

	public native static boolean createWorld(Vec2 gravity, boolean doSleep);

	public native static int createBody(BodyDef bodyDef);

	public native static void setBodyDef(int bodyId, BodyDef bodyDef);

	public native static int createShape(int shapeType);

	public native static void setPolygonShapeAsBox(int shapeId, float hx,
			float hy);

	public native static void createFixture(int bodyId, int shapeId, int density);

	static {
		System.loadLibrary("box2d");
	}

}
